/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class GPS {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '040010001';
    }

    get categoryName() {
        return '\u0067\u0070\u0073';
    }

    getAltitude(params) {
        return command({
            method: 'getAltitude',
            methodId: 'pZwphndo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLatitude(params) {
        return command({
            method: 'getLatitude',
            methodId: 'pUjLa9G1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLongitude(params) {
        return command({
            method: 'getLongitude',
            methodId: 'ppbbFEok',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLongitudeAndLatitude(params) {
        return command({
            method: 'getLongitudeAndLatitude',
            methodId: 'pDNVop8z',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getReportFrequency(params) {
        return command({
            method: 'getReportFrequency',
            methodId: 'pGeg9MPR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSignalIntensity(params) {
        return command({
            method: 'getSignalIntensity',
            methodId: 'p1Rkzh4W',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setReportFrequency(params) {
        return command({
            method: 'setReportFrequency',
            methodId: 'peoWjI9q',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default GPS;
